﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using PP.Models;

namespace PP.Controllers
{
    public class AboutController : Controller
    {
        private ICmsItemRepository repository;

        public AboutController(ICmsItemRepository repository)
        {
            this.repository = repository;
        }

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult MissionStatement(int id)
        {
            var item = this.repository.Find(id);
            return View(item);
        }

    }
}
